package com.java98k.admin.service.impl;

import com.java98k.admin.bean.Admin;
import com.java98k.admin.mapper.AdminMapper;
import com.java98k.admin.service.AdminService;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service(value = "adminService")
@EnableEurekaClient
public class AdminServiceImpl implements AdminService {

    @Resource
    private AdminMapper adminMapper;
    @Override
    public Admin login(String account) {
        System.out.println("进入系统服务-login");
        return adminMapper.login(account);
    }
}
